

package com.hazelcast.client.impl.clientside;

import com.hazelcast.client.config.ClusterRoutingConfig;
import com.hazelcast.client.impl.connection.ClientConnection;

import java.util.Collection;
import java.util.Map;
import java.util.UUID;

/**
 * Used instead of null when {@link ClusterRoutingConfig#getRoutingMode()} is not
 * set to {@link com.hazelcast.client.config.RoutingMode#MULTI_MEMBER}.
 */
class NoopSubsetMembers implements SubsetMembers {

    @Override
    public void updateOnAuth(UUID clusterUuid, UUID authMemberUuid, Map<String, String> keyValuePairs) {

    }

    @Override
    public void updateOnClusterViewEvent(UUID clusterUuid, Collection<Collection<UUID>> allMemberGroups, int version) {

    }

    @Override
    public void onConnectionRemoved(ClientConnection clientConnection) {

    }

    @Override
    public void onClusterConnect(UUID oldClusterId, UUID newClusterId) {

    }

    @Override
    public SubsetMembersView getSubsetMembersView() {
        return null;
    }
}
